package com.lin.linchatgpt.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Copyright(C),2022年-2022,霖霖
 *
 * @author 霖霖
 * @version 1.0
 * @date 2023/4/1 16:15
 * @Description
 */
@Component
public class OpenAIAPIUtil implements InitializingBean {
    @Value("${apiKey}")
    private  String ApiKey;

    @Value("${apiHost}")
    private String ApiHost;
    public static String API_KEY;
    public static String API_HOST;
    @Override
    public void afterPropertiesSet() {
        API_HOST=ApiHost;
        API_KEY=ApiKey;
    }
}
